home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / NextAnswers / 1409_scrolling_Cell_alignment.rtf < prev    next >
Text File  |  1993-11-08  |  2KB  |  47 lines

  1. {\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f1\fmodern Courier;\f2\fmodern Ohlfs;}
  2. \paperw12740
  3. \paperh8500
  4. \margl120
  5. \margr120
  6. {\colortbl;\red0\green0\blue0;\red84\green84\blue84;\red83\green83\blue83;\red82\green82\blue82;}
  7. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ulnone\fs28\fc0\cf0 Q:  
  8. \fc1\cf1 When I use the Action Cell method 
  9. \f1\fs24 setAlignment:
  10. \f0\fs28  in conjunction with the Cell method 
  11. \f1\fs24 setScrollable
  12. \f0\fs28 :, I experience some inconsistent behavior. If I have called 
  13. \f1\fs24 [myTextCell
  14. \f0\fs28  
  15. \f1\fs24 setAlignment:NX_CENTERED]
  16. \f0\fs28  and 
  17. \f1\fs24 [myTextCell setScrollable:YES]
  18. \f0\fs28 , the display does not update in the cell. However, when the TextFieldCell is sent 
  19. \f1\fs24 [myTextCell setScrollable:NO]
  20. \f0\fs28 , then the display works fine.\
  21.  
  22. \i \
  23.  
  24. \i0 A:  The Text Object does not support scrolling for centered or right-justified text.  To get proper display, you have to disable scrolling with  
  25. \f1\fs24 [myTextCell
  26. \f0\fs28  
  27. \f1\fs24 setScrollable:NO]
  28. \f0\fs28  when using the method 
  29. \f1\fs24 setAlignment
  30. \f0\fs28 : with the values 
  31. \f1\fs24 NX_CENTERED
  32. \f0\fs28  or 
  33. \f1\fs24 NX_RIGHTALIGNED
  34. \f0\fs28 .  If your text is left-justified, scrolling will work fine, i.e. you can use
  35. \f1\fs24 [myTextCell setAlignment:NX_LEFTALIGNED]
  36. \f0\fs28  with 
  37. \f1\fs24 [myTextCell setScrollable:YES]
  38. \f0\fs28 .
  39. \pard\tx1140\tx2300\tx3440\tx4600\tx5760\tx6900\tx8060\tx9200\tx10360\tx11520\fc1\cf1 \
  40.  
  41. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fc1\cf1 \
  42. Valid for 1.0, 2.0, 3.0\
  43. \
  44. QA682\
  45. \
  46.  
  47.